import requests

url = "http://localhost:3001/api/v1/document/upload"

payload = {}
files = [
    {'file': ('E:\\lihz\\10-Library\\08_webServer\\k_khlc2025\\test-表格、JSON、公式、坏json - 副本.docx',
              open('E:\\lihz\\10-Library\\08_webServer\\k_khlc2025\\test-表格、JSON、公式、坏json - 副本.docx', 'rb'),
              'application/vnd.openxmlformats-officedocument.wordprocessingml.document')}
]
headers = {
    'Accept': 'application/json',
    'Authorization': 'Bearer Z27C9VS-AZZMGRE-KY8Z7T8-6XY3TQS',
    'Content-Type': 'multipart/form-data'
}

response = requests.post(url, headers=headers, files=files)

print(response.text)
